boostarp grid npm css react

56

import React from 'react';
import { Container, Row, Col } from 'styled-bootstrap-grid';

export default (props) =>
  <Whatever>
    <Container>
      <Row>
        <Col col xl="1" lg="2" md="3" sm="6">
            Hello Bootstrap Layout
        </Col>
      </Row>
    </Container>
    <Container fluid>
      <Row>
        <Col col={6} sm={5} md={4} mdOffset={4}>
            Hello Bootstrap Fluid Layout
        </Col>
      </Row>
    </Container>
  </Whatever>;
npm install react-grid-system --save
import 'bootstrap/scss/bootstrap.scss';import 'react-bootstrap-grid-component/dist/sizingbreakpoints.scss';import { Container } from "react-bootstrap-grid-component/dist/Container";import { Column } from "react-bootstrap-grid-component/dist/Column";import { Row } from "react-bootstrap-grid-component/dist/Row"; <Container>    <Row>        <Column />    </Row></Container>

Comments

Submit
0 Comments